import { Component, OnInit } from '@angular/core';
// import { ActivatedRoute } from '@angular/router';
@Component({
  selector: 'app-index',
  templateUrl: './index.component.html',
  styleUrls: ['./index.component.css']
})
export class IndexComponent implements OnInit {
  indexId = '1';
  nId;
  constructor() { }

  ngOnInit(): void {
    this.indexId = sessionStorage.getItem('nId');
  }
  articleType(id) {
    this.indexId = id;
    this.nId = sessionStorage.setItem('nId', id);
  }
}
